<template>
  <div class="app-container">
    <h1>农事任务统计</h1>
    <el-table :data="taskStatistics" style="width: 100%">
      <el-table-column prop="taskType" label="任务类型"></el-table-column>
      <el-table-column prop="totalTasks" label="总任务数"></el-table-column>
      <el-table-column prop="completedTasks" label="已完成任务数"></el-table-column>
      <el-table-column prop="pendingTasks" label="待处理任务数"></el-table-column>
      <el-table-column prop="progressTasks" label="进行中任务数"></el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      taskStatistics: [
        { taskType: '打药', totalTasks: 10, completedTasks: 5, pendingTasks: 2, progressTasks: 3 },
        { taskType: '除草', totalTasks: 8, completedTasks: 4, pendingTasks: 1, progressTasks: 3 },
        { taskType: '施肥', totalTasks: 6, completedTasks: 3, pendingTasks: 2, progressTasks: 1 }
      ]
    };
  }
};
</script>

<style scoped>
.app-container {
  padding: 20px;
}
</style>



